html {
  height: 100vh;
}

body {
  margin: 0;
  word-break: break-all;
}

img {
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: inherit;
}

.ml20 {
  margin-left: 20px;
}

.mr20 {
  margin-right: 20px;
}

.cursor-move {
  cursor: move;
}

.cursor-pointer {
  cursor: pointer;
}

// 数字输入框最小长度
.min-number {
  width: 100px;
}

// 数字输入框最小长度
.min-number {
  width: 100px;
}

// 单行信息提示
.tip {
  margin-left: 20px;
  color: #999;
}

// 多行信息提示
.tips {
  padding: 10px 15px;
  background: rgba(61, 127, 255, 0.1);
  border: 1px solid rgba(61, 127, 255, 0.6);
  color: #666;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 25px;
}

// 表单信息提示
.tooltip {
  margin-left: 20px;
  color: #999;
}

// 表格排版
.grille-container {
  display: flex;
  flex-direction: row;

  .main-container {
    padding-left: 20px;
  }
}

// 表格排版
.main-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  overflow: hidden;
  flex: 1;

  .el-table {
    flex: 1;
  }
}

// 表单
.form-container {
  padding-bottom: 40px;

  .form-main {
    .form-main-title {
      width: 120px;
    }

    .form-main-content {
      margin-left: 100px;
    }
  }

  .form-footer {
    width: calc(100vw - 225px);
    margin-left: -20px;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 15px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 10px solid #eeeeee;
    z-index: 9;
  }
}

.form-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

// element-ui
// 表格样式
.el-table .el-table__header th.is-leaf {
  background: linear-gradient(180deg, #fefefe, #f7f7f7);
  height: 50px;
}
.el-table .el-dropdown {
  vertical-align: middle;
  outline: none;
  .el-button:focus-visible,
  .table-operation-border.el-button:focus-visible {
    outline: none;
  }
}

.el-table__header-wrapper {
  //border-radius: 5px;
}

// 树形组件
.el-tree-node__content {
  height: 40px;
}

// 分割线样式
.el-divider--vertical {
  margin: 0 10px;
}

.el-divider--horizontal {
  margin: 15px 0;
}

.el-avatar {
  vertical-align: middle;
}

// 编辑器样式
.editor-container {
  border: 1px solid #ccc;
  margin-top: 10px;
  width: 100%;

  &.w-e-full-screen-container {
    position: fixed;
    z-index: 99;
    left: 210px !important;
    top: 60px !important;
    width: calc(100vw - 220px) !important;
    height: calc(100vh - 70px) !important;
  }
}

.el-dialog {
  // 弹窗编辑器样式
  border-radius: 5px;
  .editor-container {
    &.w-e-full-screen-container {
      left: 0 !important;
      top: 0 !important;
      width: 100% !important;
      height: 100% !important;
    }
  }

  // 弹窗
  .el-dialog__body {
    max-height: 80vh;
    overflow: auto;
    padding: 0 20px;
  }

  // 弹窗高度
  .dialog-container {
    height: 80vh !important;
  }
}

// 滚动条样式
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-track {
  border-radius: 0;
  background: #fff;
}
